{% extends 'gossips/base.html' %}

{% block content %}
<div class="content">
	{% if messages %}
		{% for m in messages %}
			<div class="message">
				<h2>{{ m.title }}</h2>
				<span>{{ m.post_time }}, {{ m.name }}</span>
				<p>{{ m.text }}</p>
			</div>
		{% endfor %}
	{% else %}
		<p>No message yet</p>
		<a href="leave/">leave one</a>
	{% endif %}
</div>
{% endblock %}
